from django.db import models
class OrderModels(models.Model):
    title = models.CharField(verbose_name="类型名称",max_length=32)
    desc = models.TextField(verbose_name="类型描述",max_length=128,null=True,blank=True)
    model_img = models.ImageField(upload_to="models",verbose_name="类型图标",null=True,blank=True)
    model_code = models.CharField(verbose_name="模型编号",max_length=21)
    class Meta:
        db_table = "moh_order_models"
        verbose_name = "订单类型表"
        verbose_name_plural = "订单类型表"

    def __str__(self):
        return f"{self.title},{self.desc}"
